First working version of simple text search