Do a try...catch arong the wr.GetResponse. If you catch an exception, find out if it is a "404 not found". In that case, add a "www." and try again, e.g.
try
{
System.Net.WebResponse ws = wr.GetResponse();
}
catch (System.Net.WebException wex)
{
System.Text.RegularExpressions.Regex regex = new System.Text.RegularExpressions.Regex("\b404\b");
System.Text.RegularExpressions.Match match = regex.Match(wex.Message);
if (match.Success)
{
}
}