Based on similar question:
I want it to also remove trailing spaces on a line. The accepted answer might have this initialization instead:
Dim originalText As String = vbCrLf & "Second line." & vbCrLf & _
" Third line, with leading space and trailing spaces. " & vbCrLf & _
vbCrLf & "Fifth line." & vbCrLf
How would it be, now?