why do you hate `data.substr(-1)`?