remove unused elements (line ending, single space, double space, and tab)