string optional default (empty string)The input string whose right (trailing) end will be trimmed.
chars optional default (empty string - and an empty set strips nothing)A SET of single characters to strip from the right end (not a substring). Any trailing character that appears in this set is removed, repeatedly, until a character not in the set is reached. The default is an empty string; because an empty set matches no characters, omitting this argument strips NOTHING. To remove whitespace, list it explicitly, for example a single space, or space and tab.
[{rtrim:ananas:as}]
[{rtrim:12300:0}]
[{rtrim:xxhelloxx:x}]
[{rtrim:one, two, three, :, }]
{rtrim:/path/to/dir///:/}
[{rtrim:aaabbbccc:c}]
{rtrim:Hello world : }
[{rtrim:Hello world }]