Fix off-by-one error in Tape.__str__