public static URL makeURL(String path){
  try {
    return new URL(path);
  }
 catch (  Exception e) {
    return null;
  }
}

public static URL makeURL ( String path ) { try { return new URL ( path ) ; } catch ( Exception e ) { return null ; } }
converts a string to a url .
