Fixed: document.getSelection() returns Selection objects, not strings