Widget: Avoid adding extra spaces to the result of this._classes(...)