gets rid of whitespaces and newline character in empty lines