added docstring to regextype
accept null as a correct value
cast values to string