Macosx video output: remove trailing spaces