I often encounter situations where multiple subsequent calls of llReplaceSubString are required. This invokes many repetitive lines of code, eating away at script memory.
I would like to suggest a bulk function:
string llReplaceSubStringList( string src, list patterns, list replacement_patterns, integer count );
The two lists need to have the same number of entries (alternatively, a strided list could be used). When evoked, the function would loop through the lists and replace each item on the list with its corresponding item on the second list.
Example:
test = llReplaceSubStringList(test, ["$A", "$T", "$U"], ["Alphinaud", "Thancred", "Urianger"], 0);
This would reduce near-identical code massively!