added string truncation script and test
Merge pull request #4 from davidamador/issue-2

added string truncation script and test via pull request