generation of search files containg up to three characters of a string