Updated duration str parsing to take multiple values