'Perform the message redaction. If the message does not contain the
`trigger` string then it will return the original string unmodified.'

def redact(self, message):

    if (message and ((self.trigger is None) or self.trigger.search(message))):
        return self.regex.sub(self.replace, message)
    else:
        return message
