Remove the specified characters from the right side of the string.
Example:
assert (Strings.trimRight ("helloxyy", "xy") == "hello");
| s |
the string to trim. |
| cutset |
characters to remove from the right. |
|
trimmed string. |