'How to check if string exists within a string? [duplicate]

Lets say I have the string "My name is Henricksen" how do check if "Henricksen" name exists in the string?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source