Remove useless toPlainText function