Shorten a string.