Added user friendly error when a space is not empty