Why `Math.abs`? `substring.indexOf` will never be less than 0.