Problems combining custom properties into a string

We are currently reworking all of our templates and it has come up that we need to combine a number of custom properties into a single string to display on our drawings

I found this thread:

https://forum.solidworks.com/thread/53925

which describes what we want to do, I set up our custom property tab in the property tab builder with the equation in the text box we want to have the resultant joined text and applied the new custom property template to an existing part, this worked at first

But after opening and closing the custom property dialogue box the equation which worked at first dropped the " causing the equation to no longer work

Does anyone know how to get this working consistently?

SolidworksGeneral