Call str in max and min length validations.