Removing unnecessary white space from code