public static string ScrubPath(this string text, string path) { return text == null ? null : text.Replace(path, @"..." + Path.DirectorySeparatorChar); }