strcmp test was incorrect and would not correctly add the data