char search funtional