Avoid using built-in type keyword "str" as variable name.

I think using `str` as variable name is not recommended.