String index fixes
Merge pull request #4 from moeffju/string-fixes

String index fixes