                         
                     } else {
                         
-                        if result.characters.count == 0 {
+                        if result.count == 0 {
                             result = "\("")"
                         } else {
                             result = "\(result),\("")"

                    if let value = dictionary.object(forKey: key) {
                        if let string = value as? String {
                            // obj is a String. Do something with str
                            if result.characters.count == 0 {
                                result = "\"\(string)\""
                            } else {
                                result = "\(result),\"\(string)\""
                            }
                        } else {
                            if result.characters.count == 0 {
                                result = "\(value)"
                            } else {
                                result = "\(result),\(value)"

    //The CSV encodeing format
    open var encodingType:String.Encoding = String.Encoding.utf8;
    
    //The CSV cell separator
    open var divider: DividerType?
    
    
    ///export singleton
    open class var export: CSVExport {
