Avoid inconsistent implicit toString on potential string subtypes
#21318
+9
−2
toString on potential string subtypes
#21318