Add String#to_regexp extension