結果 : check if string contains only specific characters javascript