remove whitespace snippet