set value to null if empty