fixed comparison in string array copy