Remove Characters From The End Of A String In Rust