public static String noPrefix(String path,String prefix){
  return path.startsWith(prefix) ? path.substring(prefix.length()) : path;
}

public static String noPrefix ( String path , String prefix ) { return path . startsWith ( prefix ) ? path . substring ( prefix . length ( ) ) : path ; }
drops a prefix from a path if it exists or returns original path if prefix does not match .
