Regarding working with text in general, I have found that sometimes the text I am working with has hidden control characters. If you copy and paste the text into an application like HexEdit, you can see if that might be the case.If you identify that this is the case then you can manipulate your text string to remove these characters before you search it maybe.