String substringLastOf(int digit) { final position = length - digit; if (position < 0) return this; return substring(position); }