code: public static String trim(String list, String delimiter) {
  	return trim(list, delimiter, new int[2], false);
      }
docs: trims a string list, remove all empty delimiter at start and the end
  
  @param list list to trim
  @param delimiter delimiter of the list
  @return trimed list