Is this string2range function correct?

here you can find @sijo’s detailed answer to a similar question