simplified int conversion
substring cure