Convert String to object refrence

Thank you it works, but the issue is that I have like 500 sprite, is there another way to do this?