Recursion on format substrings