I've just wasted a load of time trying to get something to work only to find that the problem was being caused by typing “curly" double smart quote marks rather than "straight" double quote marks.

Changed this “ to this " and it worked. Lesson learned there but it's time I can never get back!