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!");
I love this game!