rtrim

Syntax

rtrim(X)

Details

Take a string of characters that has spaces at the end, and return the text without the spaces at the end.

Parameters

X is a string scalar or vector.

Returns

A STRING scalar or vector.

Examples

rtrim("I love      ")+" "+ltrim("    this game!");
// output: I love this game!