fix bugs

handle EndofDataDecoderException, String comparation bug