rtrim

Syntax

rtrim(X)

Arguments

X is a string scalar or vector.

Details

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

Examples

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