Look for the first/last instance of a character in a string.