Put template string in variable before putting in array.  This will avoi...

...d the Maximum call stack size exceeded on mac.

Unfortunate that the spacing has changed.  I only intended to change 2 lines.  Intent here is to fix an issue with mac where if one of the templates is too big, we get a "Maximum call stack size exceeded".