Add `set` method to `TextEntity`