static public String removeExtraSlash(String inStr)
    {
	int slashLoc = inStr.indexOf("://");
	int l = inStr.length();
	int hold = slashLoc + 3;
	slashLoc = inStr.indexOf("//", hold);
	while (slashLoc > 0 && slashLoc < l)
	    {
		hold = slashLoc;
		while (hold < l && inStr.charAt(hold) == '/')
		    hold ++;
		if (hold >= l)
		    {
			inStr = inStr.substring(0, slashLoc+1);
			break;
		    }
		else
		    inStr = inStr.substring(0, slashLoc+1) 
			+ inStr.substring(hold);
		slashLoc = inStr.indexOf("//", hold);
		l = inStr.length();
	    }

	return inStr;
    }