update title shortening algorithm