Removed test variables from function shorten_titles