String::strip_suffix()
Returns this string without the suffix specified. If this string does not end with the suffix, return the string unchanged.
"foo".strip_suffix("o") //-> "fo"
"bar".strip_suffix("o") //-> "bar"String::strip_suffix() Returns this string without the suffix specified. If this string does not end with the suffix, return the string unchanged.
"foo".strip_suffix("o") //-> "fo"
"bar".strip_suffix("o") //-> "bar"