num_str function

Convert a character to a numeric class