Added asPlainText function