non-strict number processing in string class