Remove trailing whitespace from features.