Templating and variables - how to assign one variable value based on choice of another variable

There isn’t anywhere in Grafana to provide a mapping (from Hewlett-Packard to HP). You could possibly to do it with Regex if it is always the first character.

If the Regex solution would work then combining chained template variables with Regex capture groups might work:

Otherwise, is it possible to get that mapping from some other data source (mysql maybe)?