Extract handshake string to module attribute