removing problematic spaces for hidden paragraphs when pasting XML