Optimized str.find(…) significantly.