Let's say we prefer acronyms for these shows:
Deep Space 9 => DS9
How I Met Your Mother => HIMYM
1. Hardcode the name
Code: Select all
DS9 {sxe} {t}
Code: Select all
{n.match('Deep Space 9':'DS9','How I Met Your Mother':'HIMYM') ?: n}
Code: Select all
n.replace('Deep Space 9','DS9').replace('How I Met Your Mother','HIMYM')
Code: Select all
{csv('/path/to/names.csv').get(n) ?: n}
Code: Select all
Deep Space 9;DS9
How I Met Your Mother;HIMYM

BTW If you just wanna modify the original string you can do just that, e.g.
"The IT Crowd (UK)" => "The IT Crowd"
Code: Select all
{n.replaceTrailingBrackets()}
Code: Select all
{n.acronym()}