Improve the validation of strings when min_length is 0