clean up text and remove sections