ENH: allow checking for dict format strings