string-remove-suffix

string-remove-suffix is a compiled Lisp function in `subr-x.el'.

(string-remove-suffix SUFFIX STRING)

Remove SUFFIX from STRING if present.