Extensions enhancement - RemoveExtraSpace() method added
The .RemoveExtraSpace() method was added to both the System.String and System.Text.StringBuilder objects. It allows the quick removal of extra space in the entire string. It will remove all leading as well as trailing white space in addition to ensuring that only single space is used throughout the string e.g.
" string truth = \"https://blog.cjvandyk.com ROCKS !!! \"".RemoveExtraSpace()
will return
"string truth = \"https://blog.cjvandyk.com ROCKS !!! \""
For a more detail of what Extensions offer, see:
README page on GitHub - https://github.com/cjvandyk/Quix/blob/master/Extensions/README.md
NuGet as Extensions.cs - https://www.nuget.org/packages/Extensions.cs/2.0.1
GitHub Source - https://github.com/cjvandyk/Quix/blob/master/Extensions
Suggestions and bugs - https://github.com/cjvandyk/Quix/discussions
Add Extensions to your toolbox and make your coding life a little easier.
Happy coding
C