         if term != "" {
             for termWord in termArr {
                 if !firstFlg {
-                    selectGenre += "AND (title CONTAINS[c] '\(termWord)' OR address CONTAINS[c] '\(termWord)' OR  place CONTAINS[c] '\(termWord)' "
+                    selectGenre += "AND (title CONTAINS[c] '\(termWord.realmEscaped)' OR address CONTAINS[c] '\(termWord.realmEscaped)' OR  place CONTAINS[c] '\(termWord.realmEscaped)' "
                     firstFlg = true
                 } else {
-                    selectGenre += "OR title CONTAINS[c] '\(termWord)' OR address CONTAINS[c] '\(termWord)' OR  place CONTAINS[c] '\(termWord)' "
+                    selectGenre += "OR title CONTAINS[c] '\(termWord.realmEscaped)' OR address CONTAINS[c] '\(termWord.realmEscaped)' OR  place CONTAINS[c] '\(termWord.realmEscaped)' "
                 }
             }
             if termArr.count != 0 {

        return place
    }
}

            }
        }
        
        let events: Results<Event> = self.realm.objects(Event).filter("checkStatus == \(CheckStatus.NoCheck.rawValue) \(selectGenre.realmEscaped)").sorted("stratAt")
        return setEventInfo(events)
    }
    
