=str: #16285: Expand should not drop elements on completion

I’d prefer this in the `else` clause, that makes it a bit clearer for me.