private string RemoveHashTag(string url) { if (url.Contains("#")) { return url.Substring(0, url.IndexOf("#")); } return url; } }