You could always store the length of "accom_price" in a global array and retrieve it by:


accom_price = right(lstAccomDets(index).text, array(index))