MQTT remove unnecessary tail