Improve shorten method