Check if a query should trigger a search
bool shouldSearch(String query) { return query.trim().length >= minSearchLength; }