remove whitespace and empty lines from examples