final version with search within sentence option