Test and documentation for DataType\String::shorten