String Compare fixes

Changed code to properly output each correct string into a separate
index in the array.