Ignores spaces in SearchInput to avoid KeyErrors.