added find first repeated letter