How do you find the first repeated character of a string