public static Uri ToUri(this string stringUri) { try { return new Uri(stringUri); } catch { } return null; }