validator - adds min/max capability to string field.