public static String noPrefix(String path,String prefix){
  Objects.requireNonNull(path,"path must not be null");
  Objects.requireNonNull(prefix,"prefix must not be null");
  return path.startsWith(prefix) ? path.substring(prefix.length()) : path;
}

public static String noPrefix ( String path , String prefix ) { Objects . requireNonNull ( path , "path must not be null" ) ; Objects . requireNonNull ( prefix , "prefix must not be null" ) ; 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 .
