getDurationFromString