Fix space inside query