結果 : check if string is empty spaces javascript