strings working and while cycle modified