• Returns the string with all trailing whitespace removed.

    Parameters

    • str: string

    Returns string