simple template engine/flexible string formatter