"Not Found" message at end of search

 check for pattern actually exist or not  & there is "Not Found " Message at end of result instead of start looping again message.