Working with a small bug.

The bug is that the last two chars of the file name are replicated. I.e.
helo_world.txt becomes hello_world.txtxt