         */
         for content in originalString.componentsSeparatedByString(" ")
         {
-            for charOut in content.characters
+            for charOut in content
             {
-                for (indexIn, charIn) in stringToSearch.characters.enumerate()
+                for (indexIn, charIn) in enumerate(stringToSearch)
                 {
                     if indexIn == searchIndex
                     {
                         if charOut==charIn
                         {
                             searchIndex++
-                            if searchIndex==stringToSearch.characters.count
+                            if searchIndex==count(stringToSearch)
                             {
                                 approximateMatch.append(content)
                                 searchIndex = 0

        /*
        the stringToMatch is greater than originalString return score of 0
        */
        if originalString.characters.count < stringToMatch.characters.count
        {
            return 0
        }

    }
    
    /*
    The FuzzySearch.search method returns the number of instances a specific character
    set is found with in a String object
    
    :param originalString
    The original contents that is going to be searched
    :param stringToSearch
    The specific contents to search for
    :param isCaseSensitive
    A Boolean value to indicate whether to use case sensitive or case
    insensitive search parameters
    :return
    An Integer value of the number of instances a character set matches a String
    */
    public class func search<T : Equatable>(#originalString: T, var stringToSearch: T, isCaseSensitive: Bool) -> Int
    {
        var tempOriginalString = String()
        var tempStringToSearch = String()
