private func replacementPredicate(forBeginsWithPredicate predicate: NSComparisonPredicate) -> NSPredicate? {
        if let constantValue = predicate.rightExpression.constantValue {
            let beginsWithRegex = "^\(constantValue)"
            return replacementPredicate(
                forComparisonPredicate: predicate,