Remove trailing whitespace from academics.