Trim the Variable Values

Hello, I am using Influxdb as datasource. I am wondering if there is a way to trim the variable values.
For example, I want to use the host variable as the title for the repeating panels. So the first panel title is host.01, the second is host.02, etc. I only want 01 and 02 shown as the titles, which is trimming the ‘host’ part, and only keep the number. Thank you!

you have to edit the logic that writes the value to the database