public static string GetAlternateHostAlias(string host)
{
if (String.IsNullOrEmpty(host))
throw new ArgumentException("Cannot get an alternative alias to a null host", "host");
if (host.StartsWith("www.", StringComparison.CurrentCultureIgnoreCase))
return StripWwwPrefixFromHost(host);
else
return "www." + host;
}