結果 : how to check every character in a string javascript