Remove Characters from the end of a String Scala January 22, 2023 by Tarik How about using dropRight, which works in 2.8:- "abc!".dropRight(1) Which produces “abc”