Changing text to different text

Hi

I have this piece of code which basically takes some text from an XML file and displays it into a dynamic textbox called “a1” then the same text into another dynamic textbox called “a1h”:

 
var a1Node=findNode(rootNode, "a1");
a1=getValue(a1Node);
var a1box:String = a1;
 
a1h = a1

Say if “a1” is “England” is there a way to make “a1h” say a shorthand version…something like “ENG”

I could use a simple if else function but I have lots of dynamic textboxes and lots of different countries…any ideas?