Adding capitalization to comments and punctuations, removing extra spaces