osstring_shrink_to_fit

The tracking issue for this feature is: #40421