Use string.find() to make search faster.