結果 : find first occurrence of character in string javascript