whitespace cleanup.  Added splitAtCaret as method.