3 ms·You can reduce the time to 0.02s by just using `String#index`.by sinap 8y agoYou can reduce the time to 0.02s by just using `String#index`.