Added minlength option for leading zeros