remove trailing whitespace from posts