Replaced Equals with == and != where appropriate

It was originally used because I was told that Equals did value
comparison whilst == did reference comparison, as it turns out, this is
not the case.