fixing the processStrig method