Allow partition null value for string type
Clean and remove unneded functions