Given a string, remove all whitespace from the end of the string.
// input: const s = ' hello world ' // output: ' hello world'
/* output */