Support for format codes, fixues issue #9