add delimiter and endl to TextBuffer