compare string and array