allow Regexp objects for strings in the schema