use grep over select for consistency and efficiency
pass block directly to grep
Merge pull request #10767 from jmondo/master

Use grep instead of select with === in QueryMethods