Use indexOf for short needles