update math/max math/min: rebase process into procedure of const char *