Sanitizes any unwanted characters at the end of the string for removal.
Example: the ?= in "Test.xlsx?="