https://tecadmin.net/remove-last-character-from-string-in-javascript/
Anonymous
Choose portability over efficiency.