changed string minlength, etc. to min