Remove last element of string
string
String removeLast([int upto = 1]) => minLen(2) ? substring(0, length - upto) : '';