結果 : check duplicates in string javascript