remove all unnecessary white-space and blank-lines