please use Regexp.union instead of the join