Removing extraneous whitespace