add support for defining truncation in format strings
fix #2