Setup 1. Prerequisites. StreamDevice requires either EPICS base R3.14.6 or higher or EPICS base R3.13.7 or higher. How to use StreamDevice on EPICS R3.13 is described ...
This will allow you to find and replace substrings before the string gets outputted. Unfortunately, the result looks a bit ugly:
out STX "590000%01<sum>%#/A/a/%#/B/b/%#/C/c/%#/D/d/%#/E/e/%#/F/f/";