'Translate substrings of estr using in order the dictionaries in
dict_tuple_str.'

def translate_str(self, estr):

    for (pattern, repl) in self.dict_str.items():
        estr = re.sub(pattern, repl, estr)
    return estr
