string-trim-right

string-trim-right is a compiled Lisp function in `subr-x.el'.

(string-trim-right STRING)

Remove trailing whitespace from STRING.