test for substring