Extract string at key function

why did we pass string str ?? instead of str can we use any variable ? if not then what is the use of str ?
also please explain typecasting that was used here ? its syntax and working

Please mention the timestamp in the video so that i can check what you are referring to.

8:43 is where he inputs str and 9:46 he talkes about typecasting

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.