Replace numberLength by digits.length