@JonB, wow thank you so much, case solved 😇

import editor # assuming the text >= 910 editor.replace_text(900,900,'') editor.set_selection(900,910)

Thank you so much for providing answer and bonus information.