code: public static String[] tokenizeToStringArray(String str, String delimiters) {
          return tokenizeToStringArray(str, delimiters, true, true);
      }
docs: Tokenize the given String into a String array via a StringTokenizer.
  Trims tokens and omits empty tokens.
  <p>The given delimiters string is supposed to consist of any number of
  delimiter characters. Each of those characters can be used to separate
  tokens. A delimiter is always a single character; for multi-character
  delimiters, consider using <code>delimitedListToStringArray</code>
  <p/>
  <p>Copied from the Spring Framework while retaining all license, copyright and author information.
  
  @param str        the String to tokenize
  @param delimiters the delimiter characters, assembled as String
  (each of those characters is individually considered as delimiter).
  @return an array of the tokens
  @see java.util.StringTokenizer
  @see java.lang.String#trim()