reduced recursive function to stringify NULL values