code: def scanStoVars(self, strline):
          
          for wd in strline.split():
              if wd in self.stodict:
                  strline = strline.replace(wd, str(self.stodict[wd]))
          return strline
docs: scan input string line, replace sto parameters with calculated results.