Fixed whitespace removal bug for Windows.
As Windows LineSeperator if \r\n removing \n first was leaving \r in