Remove space from String
c#
Solution
Regex can do the job
string_text = Regex.Replace(string_text, @"\s+", " ");
Problem
I have a lot of strings that look like this: ``` current affairs ``` and i want to make the string be : ``` current affairs ``` i try to use `Trim()` but it won't do the job