結果 : javascript check if string ends with character