Added a post-processing function to fix up sentences.