Locate the last occurence of a character in the string