stdlib update

updated `char` library. some functions had logical errors.