         
         return rows
     }
-    
+
+}
+
+
 //MARK: Helpers
-    
-    func includeQuotedNewLinesInFields(Fields fields: [String]) -> [String] {
+
+    func includeQuotedStringInFields(Fields fields: [String], quotedString :String) -> [String] {
         
         var mergedField = ""
         

        for field in fields {
            mergedField += field
            if (mergedField.componentsSeparatedByString("\"").count%2 != 1) {
                mergedField += "\n"
                continue
            }
            newArray.append(mergedField);

        return newArray;
    }


    
    func includeQuotedNewLinesInFields(Fields fields: [String]) -> [String] {
        
        return includeQuotedStringInFields(Fields: fields, "\n")
    }

    
    func includeQuotedCommasInFields(Fields fields: [String]) -> [String] {
                
        return includeQuotedStringInFields(Fields: fields, ",")
    }
    
    func includeQuotedQuotesInFields(Fields fields: [String]) -> [String] {
