fix bug when inputting city name with white space.