Handle trimming more than sequence length