You indicated that you need to create a "new line", if you create more objects than this, you should be able to optimize them.
Note: it may be possible to delete the entire selection, but only by passing a StringBuilder or something similar throughout the life of the string you created. This may or may not be simple depending on how you use it.
source share