adds string indexer to flash message collection