Should not be too much trouble. That's simple JavaScript string processing. Ask in the scripting forum and/ or look around. When you ask, provide more info like what characters you may want to ignore. You know, invisible stuff like tabs and spaces are characters, too....
Mylenium