Remove trailing whitespace to prevent failure with test.