try this:
contains(toLowerCase($Customer/CustomerName),toLowerCase($String))
I made a mistake because I didn’t quite read your question correctly.
case sensitive = isMatch($Customer/CustomerName,'.*'+$String+'.*')
not case-sensitve = isMatch($Customer/CustomerName,'.*(?i)'+$String+'.*')
or convert both strings to lower case would work too.