int (@NotNull String inputString, int index) { int k = Character.digit(inputString.charAt(index), BASE); if (k < 0) { throw new IllegalArgumentException("bad hash string: " + inputString); } return k; }