Like many others, there is a Remove method. Other posts have not explained that strings in C # are immutable - you cannot change them.
When you call Remove , it actually returns a new line ; it does not modify the existing row. You will need to make sure that you select the output of Remove and assign it to a variable or return it ... just calling Remove by itself will not change the line.
Daniel Mann
source share