@staticmethod
def dequote(s):
    """Remove excess quotes from a string."""
    if len(s) < 2:
        return s
    elif s[0] == s[-1] and s.startswith(('"', "'")):
        return s[1:-1]
    else:
        return s
