https://tecadmin.net/remove-last-character-from-string-in-javascript/
Anonymous
When in doubt, use brute force.