Actually, if the dictionary approach is used, this hole block is not needed. 
`altTxt =  pe.dic.get('%' + actn)`