function indentStr(level) { var str = ''; for (var i=0; i