The Switch on String uses the usual code for adding spaces to variables names, so JoyText becomes “Joy Text”
However, when doing String comparison this formatting makes the resultant string display in a technically inaccurate way, because string comparison is involved!
The casual glance would cause someone trying to duplicate information based on the displayed version to do so incorrectly.
One would assume, just looking at the displayed value of the node pin, that the actual data is “Joy Text”
but it is actually JoyText!
#Recommend Solution
Suppress all fancy display formatting for the output pins of Switch on String
Certain display text in the editor that has capitol letters will have spaces added for easier reading. That is caused by the “Friendly Text” feature. You can turn that off with the checkbox Editor Preferences > Appearance > Show Friendly Variable Names if it is not being helpful. It is purely for easier reading and will not affect code.
I want that feature on for everything except Switch on String though.
I am requesting that Switch on String always have that feature turned off so it shows the correct String value, since in the world of String having that space there is technically inaccurate