You can get the last character with `str[-1]`