remove empty lines, whitespaces