handle the value "null" as empty