Avoid unnecessary StringCollection allocation
#15832
Merged
StringCollection allocation
#15832