結果 : javascript check if last character in string