I would have used != instead of ^