processString function

Process a String