sfd: stop outputting trailing whitespaces or double-spaces

r? @frank-trampe
That was fast!