replace maxlength with maxlenand set default value str_type to default val xeger