I have a list of strings, example(C#):

```
new List<string> { "string1", null, null "string2", "string3", null, null, null }

```

I have many of those, all with different amounts of strings and nulls, where every one can be in a different place and the list length is not the same for each list, also not necessarily string list.

How would I remove the remaining null values after the last string, after the last non null value, keeping the null values that are between and in front of?

Thanks!

/Fredman