Prioritize query string