Print lexicographic successors of a string