Remove trailing spaces in headers