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


    /// Retuns the reversed version of the string.
    ///
    /// - Returns: The reversed copy of the string.
    @discardableResult
    func reverse() -> String {

    ///
    ///     let string = "Hello World"
    ///     print(string.trimRight(length: 7))
    ///     // Prints "Hello W"
    ///
    /// - 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 prefixed(length: characters.count - length)
    }

    /// Returns the truncated string with an ellipsis.
    ///
    /// Example:
    ///
    ///     let string = "Hello World"
    ///     print(string.truncate(length: 8))
    ///     // Prints "Hello..."
    ///
    /// - Parameter length: The final length of the string, which includes the ellipsis: `...`).
    /// - Returns: The truncated copy of the string.
    @discardableResult
    func truncate(length: Int) -> String {
        guard (length-3) > characters.count else {
            return self
        }

        return trimRight(length: length) + "..."
    }
}

// MARK: - Helpers
