fixed NA/NULL handling in strings