         accumulator += str
     }
     
-    if minWidth > countElements(str) {
-        for i in 0..<(minWidth - countElements(str)) {
+    if minWidth > count(str) {
+        for i in 0..<(minWidth - count(str)) {
             accumulator += padChar
         }
     }

}

func limit(str: String, maxLength: Int, continuation: String = "...") -> String {
    if countElements(str) <= maxLength {
        return str
    }
    

            }
            str.appendFormat("%02x", byte)
        }
        return str as NSString as! String
    }
}

