title: how to remove optional from string i have used following code
body: <pre><code> class func shareString(title : String, array: [AnyObject]) -&gt; String {
  
          var strValue: String!
  
          //strValue = "\(title)"
  
          for i in 0...array.count-1 {
  
              let share:[String: String?] = array[i] as! [String : String?]
              strValue = "\n\n \(strValue),   \n\n \(share["title"])  \n\n\(share["value"])"
          }
  
          return strValue!
  
      }
  
  
  
  //Optional("\n\n Optional(\"\\n\\n nil,   \\n\\n Optional(Optional(\\\"\\\\n LayFlat\\\"))  \\n\\nOptional(Optional(\\\"252.0\\\"))\"),   \n\n Optional(Optional(\"\\n  Die Diameter\"))  \n\nOptional(Optional(\"25.0\"))"),   
  
   Optional(Optional("\n Output"))  
  
  Optional(Optional("6.42096"))
  </code></pre>