code: public static <T, R> R injectIntoTokens(
              String string,
              String separator,
              R injectedValue,
              Function2<R, String, R> function)
      {
          R result = injectedValue;
          for (StringTokenizer stringTokenizer = new StringTokenizer(string, separator); stringTokenizer.hasMoreTokens(); )
          {
              String token = stringTokenizer.nextToken();
              result = function.value(result, token);
          }
          return result;
      }
docs: For each token in a string separated by the specified separator, execute the specified Function2,
  returning the result value from the function. For more information, see
  {@link Iterate#injectInto(Object, Iterable, Function2)}