check if substr contains