App for a programming class, is supposed to search for a string in a text.