結果 : find index of character in string javascript