let remove trailing whitespace use the new cursortools.DocumentString