Add Catch to processStr() method