@LongDong foreach works with lists, but @UserTrue suggested the option of how to take account strings from resources multiple times in 1 thread.
resource is not a list.
Thank you, my brother, your actions are really extraordinary and able to solve my problem according to my expectations, once again thank you, my brother.