convert null to empty string by default