Handle null for toString