queryString implementation