output "nil" for empty strings