criat: Fix scope of str.