Implement simple commit_text()