THANK YOU!!! It worked perfectly (after I realized that 'custArray[i].state == stateArray[i]' needed to be replaced with 'i < NAME_LEN' ).