Replace text representing greek letters with greek letters.

def replace_greek_tex(self, name):
        """Replace text representing greek letters with greek letters."""
        name = name.replace('gamma-delta', 'gammadelta')
        name = name.replace('interleukin-1 beta', 'interleukin-1beta')
        # greek_present = False
        for greek_txt, tex in self.greek2tex.items():
            if greek_txt in name:
                # greek_present = True
                name = name.replace(greek_txt, "{B}".format(B=tex))
        # if greek_present is True:
        #     name = texcode(name, 'utf-8') # For writing to xlsx
        return name