Removing spaces from snippets