store empty string as nil