fixed the problem of warning of 'str'.