Sequence trim