int/long parsing improvement