net: remove trailing space in messages