Longest trimming