Use sprintf in Fragment::getFragment