             if (testStep.hasPrefix("Scenario: ")) {
                 
                 // are we currently building a scenario?
-                if (currentName.characters.count > 0) {
+                if (currentName.count > 0) {
                     // then finish the current scenario...
                     let scenario = Scenario()
                     scenario.scenarioName = currentName;

                
                if (parameterNames.count == 1) {
                    if let selectorString = dict[key] {
                        self.performSelector(Selector.init("\(selectorString):\(parameterNames[0]):"), withObject: app, withObject: parameterValues[0])
                        return true
                    }
                }

        
        for testStep in testArray {
            
            if (testStep.count == 0 || testStep.hasPrefix("Narrative:")) {
                // ignore empty lines and introducing narrative line
                continue
            }
