stringToRange reliability improvements