refactor parser search utility, return left/right strings instead