title: Cannot subscript a value of type 'String' with an index of type 'String' Swift Error
body: <p>First of all, the other questions isn't the same as mine. <strong><em>I'm trying to get a single value from the data in Swift Xcode after retrieving the data from Firebase Firestore.</em></strong> Instead, it gives an error: </p>
  
  <blockquote>
    <p>Cannot subscript a value of type 'String' with an index of type 'String'</p>
  </blockquote>
  
  <pre><code>ref.getDocument { (document, err) in
              if let document = document, document.exists {
                  let dataDescription = document.data().map(String.init(describing: )) ?? "nil"
                  print ("Cached document data: \(dataDescription)")
                  profilename?.text = dataDescription["name"] as! String
              } else {
                  print ("Document doesn't exist")
              }
          }
  </code></pre>
  
  <p>The error occurs at the </p>
  
  <pre><code>profilename?.text = dataDescription["name"] as! String
  </code></pre>
  
  <p>line. </p>
  
  <p>The print of dataDescription is:</p>
  
  <blockquote>
    <p>Cached document data: ["email": test2@gmail.com, "name": Test2, "phone": 408-222-2222]</p>
  </blockquote>
  
  <p>Can anyone help me on this?</p>