implement read var string on when