code: public static URL read(String string) {
  		try {
  			return new URL(string);
  		} catch (MalformedURLException e) {
  			e.printStackTrace();
  			return null;
  		}
  	}
docs: Convert a string to relative locale.
  
  @param string the string
  @return the url