comparing data

Have you tried NewSoftSerial, instead of SoftwareSerial? Many issues were corrected in NewSoftSerial. I don't know whether they affect you, or not.