I am passing the name of a list element to a function as a string. I want to be able to extract the list element value by this name so I can use it dynamically with my funct