String swap for enter/leave master mode