On Sun, Jan 17, 2010 at 3:22 PM, n179911 <n179911 at gmail.com> wrote: > Thanks. And I get compilation error in > String characters = run.characters().substring(from, to - from); My bad, I should have written: String characters = String(run.characters()).substring(from, to - from); Regards, Julien