 
 private extension String {
     func withPadding(count: Int) -> String {
-        let length = characters.count
+#if swift(>=3.2)
+        let length = self.count
+#else
+        let length = self.characters.count
+#endif
         if length < count {
             return self +
                 repeatElement(" ", count: count - length).joined()

    }

    func strippedLength() -> Int {
        return stripped().characters.count
    }
}



private extension String {
    func stripped() -> String {
#if os(Linux)
        let length = NSString(string: self).length
#else
        let length = (self as NSString).length
#endif
        return strippingRegex.stringByReplacingMatches(
            in: self,
            options: [],
            range: NSRange(location: 0, length: length),
            withTemplate: "$1"
        )
    }
