Locate the first occurence of a character in the string