to iterate is meant to be done against a list, not a scalar. Or you mean iterate on characters found in a string? This imply to build such list and then iterate over the list.
Please show some effort while asking question.
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.