To create a Uri from a string you can do this:
Uri u = new Uri(\"example.com\");
But the problem is if the string (like the one above) does
My solution was for protocall-less urls to make sure they have protocal was regex :
Regex.Replace(s, @"^\/\/", "http://");