Fix substring methods
Merge branch 'master' of https://github.com/mikeroll/writr.git