Hello! Thanks for the detailed question.
After the "name = name.strip() or "MC", add "$ MC_Name = name" and it should work fine.
Have a nice day!