Trim spaces and tabs from empty lines