fix array access:
Merge pull request #6 from moeffju/string-fixes

fix array access: