def clean_postcode(postcode):
    """
    Returns `postcode` lowercase without spaces so that it can be used for comparisons.
    """
    if not postcode:
        return postcode
    return postcode.lower().replace(' ', '').strip()