removing whitespaces on empty lines