Changed the list populate from String[] to ArrayList