surpress trailing ? when query is empty