How to find a character in a string