def dequote(string):
    """Remove outer quotes if present"""
    string_new = string.strip()
    if (string_new[0] == string_new[-1]) and string_new.startswith(("'", '"')):
        return string_new[1:-1]
    return string_new