used LinkedList to replace with String[]