How to replace a char in string with an Empty character in C#.NET December 28, 2022 by Tarik You can use a different overload of Replace() that takes string. val = val.Replace("-", string.Empty)