fixing string formatter, adding more tests