removing spurious tabs from query