replaced substr with php shim
replaced substr with php shim

Signed-off-by: Nick Brook <75ef9faee755c70589550b513ad881e5a603182c@rmpenterprise.co.uk>

Akkroo/JSMongoQuery,Akkroo/JSMongoQuery,Akkroo/JSMongoQuery