Variable `string` not defined

Fixed a quick little issue in this example - line 25 you declare the variable as `str` but you reference at `string` later, which generates an error.