Refactored grepSearcher