Remove spaces from test queries