Fixed ipArrayFromString so last value is correct.

Last value in the ipArray was always returning 0.