use xstrfmt in favor of manual size calculations