javascript check if string is null or empty or whitespace