Noen <not.available at na.no> writes: > This way is very slow for large strings. > Anyone know of a better and faster way to do it? Yes, use the array module.