Implement simple string formatter