trim index