Removing excess space