put found string out of while loop