private static int indexOfSlash(String str, int startIndexIncl, int endIndexExcl) {
    int current = startIndexIncl;
    while (current < endIndexExcl) {
      char ch = str.charAt(current);
      if (ch == '/') {
        return current;
      }

      current++;
    }
    return -1;
  }
private static int indexOfSlash(String str, int startIndexIncl, int endIndexExcl)