https://users.rust-lang.org/t/how-to-remove-last-character-from-str/68607
Anonymous
Choose portability over efficiency.