def get_serial_number_key(serial_num: str) -> str:
    """Get the compressed search serial number key for the MH serial number."""
    key: str = ''
    if not serial_num:
        return key
    key = serial_num.strip().upper()
    if len(key) > 20:
        return key[0:20]
    return key