docs: public static Array listToArrayTrim(String list, String delimiter, int[] info) {
  	if (delimiter.length() == 1) return listToArrayTrim(list, delimiter.charAt(0), info);
  	if (list.length() == 0) return new ArrayImpl();
  	char[] del = delimiter.toCharArray();
  	char c;
  
  	// remove at start
  	outer: while (list.length() > 0) {
  	    c = list.charAt(0);
  	    for (int i = 0; i < del.length; i++) {
  		if (c == del[i]) {
  		    info[0]++;
  		    list = list.substring(1);
  		    continue outer;
  		}
  	    }
  	    break;
  	}
  
  	int len;
  	outer: while (list.length() > 0) {
  	    c = list.charAt(list.length() - 1);
  	    for (int i = 0; i < del.length; i++) {
  		if (c == del[i]) {
  		    info[1]++;
  		    len = list.length();
  		    list = list.substring(0, len - 1 < 0 ? 0 : len - 1);
  		    continue outer;
  		}
  	    }
  	    break;
  	}
  	return listToArray(list, delimiter);
      }