This command will with trim all the characters in CUTSET from right side of the STRING.
string trimright "-" "--people--"
Would return --people
NOTE: To read content from standard input we use the -i -
option.
echo "--people--" | string -i - trimright "-"
Would return --people