Revert "test not using substring function"

This reverts commit 04c7976712b683a25a00cff6e356b65f47e512b9.