def unescapeString(string):
    """
        Unescape the given string

        @param string: An escaped string
        @return: Unescaped string
    """
    toUnescapeChars = ['\\', '(', ')']
    unescapedValue = ''
    i = 0
    while i < len(string):
        if string[i] == '\\' and i != len(string) - 1:
            if string[i + 1] in toUnescapeChars:
                if string[i + 1] == '\\':
                    unescapedValue += '\\'
                    i += 1
                else:
                    pass
            elif string[i + 1] == 'r':
                i += 1
                unescapedValue += '\r'
            elif string[i + 1] == 'n':
                i += 1
                unescapedValue += '\n'
            elif string[i + 1] == 't':
                i += 1
                unescapedValue += '\t'
            elif string[i + 1] == 'b':
                i += 1
                unescapedValue += '\x08'
            elif string[i + 1] == 'f':
                i += 1
                unescapedValue += '\x0c'
            else:
                unescapedValue += string[i]
        else:
            unescapedValue += string[i]
        i += 1
    return unescapedValue
