set xlateOutVals [string map {& \T\ \ \E\ | \F\ ^ \S\ ~ \R\} $xlateInVals]
This seems to work 90% of the time, but I ran into an issue with a couple of values that don’t have spaces around the character I am mapping. “B&C” vs “B & C”
When I was troubleshooting via the testing tool, the value seems to get mapped appropriately as I am echoing the xlateOutVals, so I will see “BTC” on the echo, but in the message is “BTC”. In the case of the value with spaces around the character, the echo has “B T C” and the message also has “B T C”.
I am pretty much stumped and not sure what to do next. Any ideas?