Delete whitespace and unneeded code