Trims trailing c characters from the string s. Related: trimSuffix.
c
s
The string to trim.
The character to trim from s.
The maximum number of characters to trim from the right side (default is -1), a value less than zero indicates no limit.
-1
Trims trailing
ccharacters from the strings. Related: trimSuffix.