Checking if a string ends in a space does not require converting UTF-8 to UTF-16 and reading out its code points.
To facilitate the implementation of "delete" and all associated algorithms, split off this piece of `Document` into a separate directory. This sets up the infrastructure for arbitrary commands to be supported.