 
     /// Returns the left-trimmed version of the string.
     ///
-    /// Example 1:
+    /// Example:
     ///
     ///     let string = "Hello World"
     ///     print(string.trimLeft(length: 7))

    ///
    ///     let string = "Hello World"
    ///     print(string.trimRight(length: 7))
    ///     // Prints "Hello"
    ///
    /// - Parameter length: The number of characters to trim from the end of the string. If the provided length is greater than the original string, the original string is returned.
    /// - Returns: The right-trimmed copy of the string.
    @discardableResult
    func trimRight(length: Int) -> String {
        guard characters.count - length > 0 else { return self }
        return String(characters.prefix(characters.count - length))
    }

}

// MARK: - Helpers


    /// Retuns the reversed version of the string.
    ///
    /// Example:
    ///
    ///     let string = "Hello World"
    ///     print(string.reverse())
    ///     // Prints "dlroW olleH"
    ///
    /// - Returns: The reversed copy of the string.
    @discardableResult
    func reverse() -> String {
