code: def get_bare_quoted_string(value):
      
      if value[0] != '"':
          raise errors.HeaderParseError(
              "expected '\"' but found '{}'".format(value))
      bare_quoted_string = BareQuotedString()
      value = value[1:]
      while value and value[0] != '"':
          if value[0] in WSP:
              token, value = get_fws(value)
          else:
              token, value = get_qcontent(value)
          bare_quoted_string.append(token)
      if not value:
          bare_quoted_string.defects.append(errors.InvalidHeaderDefect(
              "end of header inside quoted string"))
          return bare_quoted_string, value
      return bare_quoted_string, value[1:]
docs: bare-quoted-string = DQUOTE *([FWS] qcontent) [FWS] DQUOTE
  
      A quoted-string without the leading or trailing white space.  Its
      value is the text between the quote marks, with whitespace
      preserved and quoted pairs decoded.