Edit in JSFiddle

require([
    "dojo/query", 
    "dojo/string", 
    "dojo/NodeList-manipulate", 
    "dojo/domReady!"
], function(query, string){
    var employee = {
        "first": "  Kevin     ",
        "last": "Armstrong  ",
        "title": "Designer"
    };
    var template = "My name is ${first:trim} ${last:trim}.";
    query("#out").html(string.substitute(template, employee, null, string));
});
<div id="out"></div>
strong { font-weight: bold; text-decoration: underline; }
.special { font-weight: bold; color: #0099CC; }