sauoq
sorry i didn't make myself clear, i want to match 2 strings exactly but when i use eq it matches you & you'll & you've etc. however i don't want to disregard the ' altogether as i may also have to match you'll at a different time.
hope this makes more sense
thanks
it's still not correct.say for american it's matching and outputting american AND american's. i want to disregard the second occurrence unless it matches the string completely?
regarding eq:
when i use eq it matches you & you'll & you've
Are those your theories, or have you actually tested the code and seen that behavior?