write before the script:

Code:
str = player.name;