remove blank names from query