fix user input for location search