Extracted String Calculator with method