Update Garf.cpp

Refactored charSearch function