InputForm.cs: do not accept spaces as input