Attempts to fix bug that removes whitespace.
Better splitting, now also on paste.
Merge branch 'feature/split-on-paste'