how to remove white spaces in between string in c# code example
Example 1: remove whitespace between string c#
string str = "C Sharp";
str = Regex.Replace(str, @"\s", "");
Example 2: how to remove space between string in c#
string str = "C Sharp";
str = Regex.Replace(str, @"\s", "");