Modify attribute text

Is it possible to modify the text presented by an attribute? My water heater integration has an attribute that has 3 possible states, eco, performance, and ‘off’. Unfortunately ‘performance’ is too long to display properly on my Lovelace entities card. If there were a way to replace the text or truncate (RTrim) the text that would be great.
I have already created a template sensor to do this but unfortunately using that sensor eliminates the functionality of the control pop-up that comes with using the native entity.

You could use custom:button-card (HACS) and template your way to a custom button that trims the text AND retains functionality?