ArrayList for getting current index and symbolString changed to HashMap