DEV Community

Cover image for String Manipulation: C# Trim Whitespace
Bradley Wells
Bradley Wells

Posted on • Originally published at on

String Manipulation: C# Trim Whitespace

In this tutorial, we will write a string manipulation example to trim all whitespace from a string in C#. We will use a helper method to remove all whitespace and print the modified result to the console. In the previous tutorial, we wrote a console application that took a user’s input and printed their string backwards. In this example, we will write a similar string manipulation program...


Top comments (0)