# String.trim_end ## Function Remove whitespace characters at the end of a string. ## Syntax ```bt string.trim_end() ``` ## Parameters None. ## Return value | Type | Description | | ------ | ------ | | String | New string with trailing whitespace removed. | ## Code Example ```bt result = ' BT '.trim_end() // Output: BT print result ``` ## Notes - The original string is not modified.