# RTRIM

Removes any trailing whitespace from a given string.

## Syntax

```
RTRIM(STRING)
```

## Arguments

#### STRING

Type: `string`

A sequence of characters.

## Returns

Type: `string`

`STRING` with any trailing whitespaces removed.

***

## Examples

| STRING | Output |
| --- | --- |
| `hey` | `hey` |
| `hey` | `hey` |
| `hey` | `hey` |
| `hey` | `hey` |
| `a b` | `a b` |