Fixed for avoiding warning message ‘Variable "$indent_str” will not stay shared’.