Added minLength and maxLength assertions