sfd: stop outputting trailing whitespaces or double-spaces

r? @frank-trampe
Well you commented just after I saw it (I like to push commit then review the diff on GitHub I find it nicer) so I only needed the time to force-push.