Fix for strings with odd number of letters

Credit to Dominik Kukacka [dominikkukacka](https://github.com/dominikkukacka)
for finding this bug.