strip whitespace in c# code example
Example: c# remove spaces from string
string str = "This is a test";
str = str.Replace(" ", String.Empty);
// Output: Thisisatest
string str = "This is a test";
str = str.Replace(" ", String.Empty);
// Output: Thisisatest