Moved observation tokenization function from `SimpleDocumentFormat`
module to `TextUtils` module and began using it for command tokenization
as well.