code: public static String[] split(String strings, String separator, boolean trim) {
  		StringTokeniser tokeniser = new StringTokeniser(separator);
  		String [] tokens = tokeniser.tokenise(strings);
  		if(trim) {
  			for(int i = 0; i < tokens.length; ++i) {
  				tokens[i] = tokens[i] != null ? tokens[i].trim() : tokens[i];
  			}
  		}
  		return tokens;
  	}
docs: Splits the input string using the given separator to identify its tokens;
  it will also trim the tokens, depending on the trim parameter.
  
  @param strings
  the string to split.
  @param separator
  the character sequence to use as a token separator.
  @param trim
  whether the tokens should be trimmed.
  @return
  an array of tokens.