public static String noStartingSlash(String path){
  Objects.requireNonNull(path,"path must not be null");
  return hasStartingSlash(path) ? path.substring(1) : path;
}

public static String noStartingSlash ( String path ) { Objects . requireNonNull ( path , "path must not be null" ) ; return hasStartingSlash ( path ) ? path . substring ( 1 ) : path ; }
drops starting slash from path if present .
