*/
public static String canonicalizeURL(String incomingURL,
boolean stripLeadingWWW) throws MalformedURLException {
GoogleURL urlObject = new GoogleURL(incomingURL);
if (!urlObject.isValid()) {
throw new MalformedURLException("URL:" + incomingURL + " is invalid");
}
return canonicalizeURL(urlObject, stripLeadingWWW);
}