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