Modify textual content and remove unnecessary bits