I've basically converted the original code into one text event, demonstrating what regex can do in my version. The script may look bigger, but is clear to see than using lots of $iifs, which, as RusselB has suggested, take more resources. /inc is more suitable than using hash tables in this case. Last but not least, the original code intends to show different colors for each star award.