Debugged for the case where numerical value is set to a space.