Replace find_all + each with grep