Replaces one or more consecutive white space characters by a single space character, and trims white space from each end of a string.
Namespace: Facilita.UtilAssembly: fc_clr (in fc_clr.dll) Version: 9.5.7.98
Syntax
Parameters
- text
- Type: System String
The string to be modified.
Return Value
The modified string.Remarks
Examples
string s = " This is a\t\rstring\n\nwith white space "; s = StringUtils.SimplifyWhiteSpace(s); // s now contains "This is a string with white space"
See Also