Fix valText validation for spaces