public static String requireLength(String value, String description, int lower, int upper) {
        requireInRange(value.length(), description, lower, upper);
        return value;
    }
Requires the value to have a length in range lower to upper, inclusive.
vespajlib/src/main/java/ai/vespa/validation/Validation.java