Added Template#replaceTokens()