Implemented substring
Merge pull request #2 from JonCanning/master

Implemented substring