First of all, it is not academic misconduct if graduate students only make some simple text modification or format adjustment for doctoral thesis. Because this revision does not involve the core content of the paper, it will not affect the academic value and scientific nature of the paper.
However, it is recommended to modify it yourself. At present, there are many duplicate checking software with modification function, which can assist in modification. Such as paperless.