string s = "123sabcd"; s=s.Remove(s.LastIndexOf("abcd")); Console.WriteLine(s);
string itemvalue = "xxxabcd".TrimEnd("abcd".ToCharArray());
string test01 = " xxxabcd "; test01 = test01.Replace("abcd", "");