While I also think single quotes are better for SQL, this was not the problem you were dealing with.
Look at the criterion value from your original post:
It's hard to see, so lets format this with a non-proportional font: "Microsoft*'"
-> There is an single quote at the end, which is part of...