Put template string in variable before putting in array.  This will avoid the Maximum call stack size exceeded on mac.