added substr scalar function
Merge pull request #854 from crate/h/substr

H/substr