Strings::substring(): avoid calculating string length unless necessary
Merge pull request #47 from JanTvrdik/strings_substring_length

Strings::substring(): avoid calculating string length unless necessary