Don't do this. Just test against the expression symbolically, not the string version.