結果 : check if string has repeated characters javascript