Improved Data.getFormat().

[ENH] Improved Data.getFormat(). Now it can uses replacements.