sfd: stop outputting trailing whitespaces or double-spaces
Merge pull request #1658 from adrientetar/sfd-trails

sfd: stop outputting trailing whitespaces or double-spaces