kotlin string contains another string code example
Example 1: kotlin check if string contains
"AbBaCca".contains("bac", ignoreCase = true)
Example 2: kotlin substring in string
val name = "James Smith"
// contains() returns true if 'James is in
// string name and false otherwise
val isSubstring = name.contains("James")