Also writes the received string when it is correct formatted.