     /// - parameter baseStyle: The style to use for this string.
     public func append(to attributedString: NSMutableAttributedString, baseStyle: StringStyle, isLastElement: Bool) {
         attributedString.append(baseStyle.attributedString(from: self))
+        if isLastElement || !Thread.current.isCurrentlyComposing {
+            attributedString.removeKerningFromLastCharacter()
+        }
     }
 
 }

    }

}

            attributedString.append(newString)
        }

        if isLastElement {
            attributedString.removeKerningFromLastCharacter()
        }
    }

