Strip correct query