public static String trim(String list,String delimiter){
  return trim(list,delimiter,new int[2],false);
}

public static String trim ( String list , String delimiter ) { return trim ( list , delimiter , new int [ 2 ] , false ) ; }
trims a string list , remove all empty delimiter at start and the end
