removing repeated space chars from query