Add a parameter to ShortString shorten.

This is a patch to enable configuration of the length of the
resulting string in shorten.
Merge pull request #6 from zanata/configureshorten

Add a parameter to ShortString shorten.