Works.

Fixed! The key was that you have to compensate for the number of times
that you actually do the copying across to know where t start in the
initial string.