added substring usage