I have a bunch of text files that get loaded into strings at the start of the program. These strings will have custom color codes like <red><blue> ect. But I need to replace those with the xterm color codes. Say <red> is '\e[38;5;196m' how would I do this?