changes on findStr

simplifying the method