def METHOD_NAME(self):
    res = self.sfmt[:]
    if not self.percentlist:
        self.percentlist = [0] * 3
    for i in range(len(self.percentlist)):
        res = res.replace("$" + str(i), self.pfmt % (self.percentlist[i]))
    res = res.replace("$?", "%d" % (len(self.percentlist) - 1))
    return res