             */
 
             if let range = lowercaseString.rangeOfString(
-                String(lowercaseStringToMatch[advance(lowercaseStringToMatch.startIndex, i)] as Character),
+                String(lowercaseStringToMatch[lowercaseStringToMatch.startIndex.advancedBy(i)] as Character),
                 options: NSStringCompareOptions.CaseInsensitiveSearch,
                 range: Range<String.Index>( start: startAt, end: lowercaseString.endIndex),
                 locale: nil

                        Weighing Logic: Typing the first character of an acronym is as if you
                        preceded it with two perfect character matches.
                        */
                        if originalString[advance(indexOfString, -1)] == " " { charScore += 0.8 }
                    }
            }
            else

            }
            
            /* Same case bonus. */
            if (originalString[indexOfString] == stringToMatch[stringToMatch.startIndex.advancedBy(i)])
            {
                charScore += 0.1
            }
            
            /* Update scores and startAt position for next round of indexOf */
            runningScore += charScore
            startAt = indexOfString.advancedBy(1)
        }
        
        /* Reduce penalty for longer strings. */
