fixed query so we don't get white space returned for getCities method