Handle spaces in name input