how to find a character in a string c++