I have the following markup containing 10 pre elements with the class indent:
pre
indent
$.each iterates over a collection of data. Since you pass a String that have 7 chars, it will iterate for each char. See the example of use:
$.each([52, 97], function(index, value) { alert(index + ': ' + value); });