Add support for a format string. Fixes #1