replace NULL by empty string
emphasis changed lines