I was playing around with this here:
https://jsbin.com/zebipenidi/1/edit and tried editing the keyword to other things.
When I tried other strings (my name, "null", other CSS "words" like opacity) it broke.
I wonder if this is because the initial variable definition needs to be valid css in order to be replaced?