Remove lines with only whitespace and test empty lines + whitespaces lines