Change the case or use Alias on template variable output to use in Grafana Dashboard panel title


I want to use one Elasticsearch template variable output in dashboard panel title. The output is in lower case letters so I want to make it upper case i.e., cat (Elasticsearch template variable output) → Cat (Expected Output). So, is there any way to change the case or use alias on template variable output?
Changing the data in elasticsearch is difficult so we are trying to change from Grafana side. I am using Grafana version 4.6. Please let me know how can I achieve this.