-ne not equal

Must be a typo, so reformed your code