one logic and one string problem