support substr and substring operator