結果 : check for empty string with spaces javascript