List content is: hello there My string is: hello there List content is: 123ggg dd ee ff hello there second test zzyyww List content is: 123ggg aabbcc dd ee ff hello there second test zzyyww List content is: 123ggg aabbcc dd ee ff second test zzyyww Found element aabbcc List content is: 123ggg aabbcc dd ee ff second test zzyyww Using the dangling pointer: something else