implement substr
Merge pull request #1 from haarg/substr

implement substr
Merge pull request #2 from avenj/master

Tweak constructors to bless lexicals