public URL formatUrl(String url) {

		URL formatedUrl = null;
		
		if (url.startsWith("file:")) {
			if(url != "file:./lab5/404.html" && url != "file:./lab5/history.html") {
				url = url.substring(10);
				return formatUrl(url);
				}
		} else if (!url.startsWith("http://")) {
			if (url.startsWith("www.")) {
				url = "http://" + url;
			} else {
				url = "http://www." + url;
			}
		}
		
		try {
			formatedUrl = new URL(url);
			if (url == "file:./lab5/404.html") {
				addressBar.setText("");
			} else if (url == "file:./lab5/history.html") {
				addressBar.setText("History");
			} else {
				addressBar.setText(url);
			}
			
		} catch (MalformedURLException e) {
			//Do nothing
		} 
		return formatedUrl;
	}