use substring(BytesRef) in SubstrFunction