treat values kind of string to allow regexp validation

It's better to treat custom string type to match the regexp.