public static char Last(this StringBuilder str) { if (str.Length == 0) throw new EmptySequenceException(); return str[str.Length - 1]; }