Remove trailing spaces from all snippets