Do not shadow the global "string" inside functions

This removes a pylint warning.