There are often times where it’s necessary to have some sort of template in a string, with placeholders that will be replaced with data-driven values at runtime. Examples of this include email templates, mail merges and even integration scenarios. Now there are many sophisticated and complex approaches to solving this problem, but here is a simple approach that works: