Fixes shorten to work like it did before core text was updated

This should make it work like before.