Implement trimTo function
Merge pull request #8 from DaMouse404/trim-to-length

Implement trimTo function