Skip query when only spaces are different from the last query.