check if a char is a space java