When a string does not have a dotIndex[-1] the code would crash when substringing
Merge pull request #1 from jcatterson/master

When a string does not have a dotIndex[-1] the code would crash when sub...