fixing unary operator issues with not quoting variables in comparison