Step 6 of String Calculator kata