equals methode for pattern