null check for processString