fix string off-by-one bugs
Merge pull request #2 from rfuchs/master

fix string off-by-one bugs
Thank you!