remove one character in string C# code example
Example 1: c# remove specific character from string
string phrase = "this is, a string with, too many commas";
phrase = phrase.Replace(",", "");
Example 2: remove control characters from string c#
string input; // this is your input string
string output = new string(input.Where(c => !char.IsControl(c)).ToArray());