bugfix for the default template function Str2Number<T>, reset the *ipIsValid to false rather than the ipIsValid