Removing Blank Lines and trailing spaces