Corrected logic when dealing with SSNs in the XML generation