case length trimming