Store empty string as 'null'