public static string RemoveHashFromPageTitle(string title) { return !title.Contains("#") ? title : (title.Substring(0, title.IndexOf('#'))); }