Remember last query to prevent double requests. Trim query string to ignore whitespace.