You are trying to compare with a URI value, which should not be surrounded by quotes, but by fish hooks:
FILTER(?personuri != <"""+imURI+""">)
By the way, the suggestion @morphyn gives above (using the str()
function) will also work, but is less efficient.