fixed seg fault from not having search string initialized