Strip last amount of chars if possible. Otherwise return original stringbuilder
fun StringBuilder.stripLastChars(amount: Int): StringBuilder