nl_tokens: Format a string by replacing all keys between { and } with values from the given dictionary
pl_tokens: function strformat ( string , dict ) { var formatted = string ; for ( var prop in dict ) { var regexp = <mask> RegExp ( '\\{' + prop + '\\}' , 'gi' ) ; formatted = formatted . replace ( regexp , dict [ prop ] ) ; } return formatted ; }