Added a new method for converting blank strings to null