Fixed #5, when minlength and maxlength is string of number.