public static String cleanFolderStackingMarkers(String filename){
  if (!StringUtils.isEmpty(filename)) {
    Matcher m=folderStackingPattern.matcher(filename);
    if (m.matches()) {
      return m.group(1) + m.group(3);
    }
  }
  return filename;
}

public static String cleanFolderStackingMarkers ( String filename ) { if ( ! StringUtils . isEmpty ( filename ) ) { Matcher m = folderStackingPattern . matcher ( filename ) ; if ( m . matches ( ) ) { return m . group ( 1 ) + m . group ( 3 ) ; } } return filename ; }
clean stacking markers . < br > same logic as detection , but just returning string w / o
