now pasting new lines and spaces is working properly