Allow string input on regexp validator; Included tests