Regexp.escape added for both terminating and evaluating string so that special symbols can be used