Removal of empty paragraphs at the beginning and at the end of a text.