Remove trailing whitespaces from the trakt plugin