fix bug in string convert to numeric may throw exceptions