Changed the equals function in cmd