[LIB]: Naive finite state machine based textsearch