move stringify to ndef
remove trailing whitespace