str.length
By Alexis Walter at Dec 26 2020
str = str.substring(0, str.length - 1);
By Benjamin RusselV at Apr 21 2021