Removes whitespace from the end of a string.
1
printf("%s\n", strings.trimRight(" hello ")) // " hello"