結果 : find last character of string javascript