Do not add tab_str to the global scope

Thanks to mjl for the report.