clean up toRangeStr