'Run through all the "in" statements on top of target_str and return a
list according to the class __init__ documentation.
:param target_str: The target string where the in statements are
going to be applied.'

def query(self, target_str):

    result = []
    if isinstance(target_str, unicode):
        target_str = target_str.encode(DEFAULT_ENCODING)
    for in_str in self._in:
        if (in_str in target_str):
            if (in_str in self._assoc_obj):
                resitem = [in_str]
                resitem.extend(self._assoc_obj[in_str])
                result.append(resitem)
            else:
                result.append(in_str)
    return result
