I want to make sure that _content does not end with a NewLine character:
_content = sb.ToString().Trim(new char[] { Environment.NewLine });
I had to remove the new lines all over the text. So I used:
while (text.Contains(Environment.NewLine)) { text = text.Substring(0, text.Length - Environment.NewLine.Length); }