Add utility method shortening a string to a maximum length