Switch looks for an exact match, so yes, you need the spaces. However, you could test against
true, and use IsRegexMatch:
switch (true) {
case (IsRegexMatch("chan.*health", s)) {
msg("here")
}
default {
msg("not here")
}
}
The "chan.*health" is a regular expression that will match anything like that, where the .* bit matches anything (or nothing).