結果 : first occurrence of a character in a string javascript