Remove empty lines and whitespace