As mentioned in the comment above, my specific issue was due to an errant space in the variable names. This was carried over from my actual script into the example script in the question; eliminating the space fixed the issue.