<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _depend_exec_clean(self, text):
 """Cleans any string constants in the specified dependency text to remove embedded ! etc. that break the parsing. """

        #First remove the escaped quotes, we will add them back at the end.
        unquoted = text.replace('""', "_FORTPYDQ_").replace("''", "_FORTPYSQ_")
        for cmatch in self.RE_CONST.finditer(unquoted):
            string = cmatch.string[cmatch.start():cmatch.end()]
            newstr = string.replace("!", "_FORTPYEX_")
            unquoted = unquoted.replace(string, newstr)

        requote = unquoted.split("!")[0].replace("_FORTPYDQ_", '""').replace("_FORTPYSQ_", "''")
        result = "(" + requote.replace("_FORTPYEX_", "!").replace(",", ", ") + ")"
        return result