Fixed calls to isValidChar function