Change variable name from `str`.

`str` is a built-in function and using it as a variable name in the function `mask_string` overrides that behaviour.

Changed this in the function.