xml string to arraylist and compare string to arralylist