add clear() function in string head file