結果 : find duplicates in a string javascript