Removes some unnecessary spaces