filter empty string during serialization