Skip to main content

rstrip(stringToStrip)

Removes any whitespace from the right of a string

Availability

Device + Agent

Parameters

Name Type Description
stringToStrip String Any string

Returns

String — the truncated string

Description

This function removes any space characters at the end of the passed string and returns the result as a new string, leaving the original intact.

Because rstrip() is implemented as a function, it does not use dot syntax.

Example Code