allow for leading spaces in a query