cleans up white space and lines