check if string contains substring python