Added the shorten method and tests
Merge pull request #5 from williamknauss/feature/shorten

Added the shorten method and tests