Remove trailing whitespace to make content uniform