!=0 strcmp confusion fixed