<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def scanStoVars(self, strline):
 """ scan input string line, replace sto parameters with calculated results. """

        for wd in strline.split():
            if wd in self.stodict:
                strline = strline.replace(wd, str(self.stodict[wd]))
        return strline