refactor out string-range
4.0.1