String::indexOf(char) and String::lastIndexOf(char)