var newStr=""; char[] trimChars={'@','#','$',' '}; string strC="@Hello# $"; newStr=strC.Trim(trimChars); Console.WriteLine(newStr);//"Hello"