Removing blank class attributes