Did you enter a single space character or an empty string? Because these two are not the same:
"".equals(" ") == false
Type: Posts; User: Cornix
Did you enter a single space character or an empty string? Because these two are not the same:
"".equals(" ") == false
Dont compare strings with "==", you HAVE to use the equals() method to compare Strings.