Lease-Script local/global variables Problems

We received some new hardware with factory default ROS v7. It appears the dhcp server, lease-script is no longer taking local/global variables? Has anyone found a fix for this? See below for script.

{
:local mac “$leaseActMAC”
:local host $“lease-hostname”
:if ([:pick $host 0 4] = “test” || [:pick $host 0 4] = “exam”) do={
/ip hotspot ip-binding add mac-address=$mac server=“all” comment=“test” type=“bypassed”;
}
}

work if the variables are not used?

:if (([:pick $"lease-hostname" 0 4] = "test") or ([:pick $"lease-hostname" 0 4] = "exam")) do={
    /ip hotspot ip-binding add mac-address=$leaseActMAC server=all comment="test" type=bypassed
}

Thanks Rex!