Problem with comparing serial data