dont add random space to text node

These lines of code were inserting a text space into my content.

When you clicked "more" on something that was truncated mid-word and then clicked less, you would get something like this:

"someth ing"