Remove trailing whitespace and ?>