Update Garf.cpp

Refactor charSearch function