code: public static void forEachTrimmedToken(String string, String separator, Procedure<String> procedure)
      {
          for (StringTokenizer stringTokenizer = new StringTokenizer(string, separator); stringTokenizer.hasMoreTokens(); )
          {
              String token = stringTokenizer.nextToken().trim();
              procedure.value(token);
          }
      }
docs: For each token in a {@code string} separated by the specified {@code separator}, execute the specified
  {@link Procedure}.