Removes whitespace from the end of a string.
- The source string from which to remove trailing whitespace.
- A string stripped of whitespace from its end. If the end of source string has no whitespace, the string is simply returned, with no exception being thrown.
@debug string.trim-end(' Hey, you guys! ');
// " Hey, you guys!"