Could you please post the selection criteria too? The codes that you mentioned are all 5 digits and HS do not have 5 digit codes. t
Normally, if you open the text file in Excel, sometime, it truncates number zero, because it tries to converts them into number. Try to open the text file in text editor (notepad), you should see the original number.