remove empty lines
ignore empty lines, trim once.