This command will with trim all the SUFFIX from the STRING.
string trimsuffix "--" "--people--"Would return --people
NOTE: To read content from standard input we use the -i - option.
echo "--people--" | string -i - trimsuffix "--"Would return --people