compare two character arrays