def unspaced_lower(text):
    """
    Remove spaces and apostrophes from text. This is a gentler form of
    `slugify` that preserves regex operators, for example.
    """
    return text.replace(' ', '').replace("'", '').lower()