fix succ/pred for an empty string

- closes #363