add string formatter method