Remove unnecessary function definitions for matching characters