performance gain for converting string to numbers (stringstreams stream operator is totally slow!)