Sprintf-like string formatting capabilities with arbitrary format definitions