Add unit tests for processString