Also if the user sets a startIndex but leaves endIndex = Integer.MAX_VALUE the start is ignored, found while testing HV-813 with this EAN-14 code (01) 1 23 45678 90123 1 the first 2 in the parenthesis are ignored in the mod calculation.