Added `context` argument to the `processString` method