- set min and max for str fields