Done, it originally was entirely try, except. However a "for in" works on strings just as well as files, so I had to change it.