The method you’re looking for is contains
it takes either char or string as an argument and returns true or false. So for your problem, you need:
string_a.contains(string_b)
solved Is there a method to check if a string/char exists in another string? [duplicate]