test not using substring function