avoid string copies for all range-like queries