trim snippets