def clean_string(text):
    """
    Remove Lucene reserved characters from query string
    """
    if isinstance(text, six.string_types):
        return text.translate(UNI_SPECIAL_CHARS).strip()
    return text.translate(None, STR_SPECIAL_CHARS).strip()