removed spaces at the end of sentences that cause line breaks