ignore null column and trim space

Hi,

I've created these two commit to fix issue#2 and issue#3


Thanks,
Jackie