edited Class SearchforString so that it will work for either file or
folder chosen