convert integer from string for numberOfPoints