i don't understand why it won't let me check contains on switch cases : i was trying to do thi

    var stringwithcharactherTofind = "booboo$booboo"

    switch stringwithcharactherTofind{
    case stringwithcharactherTofind.ifhasprefix("$"):
    stringwithcharactherTofind = "done"
    default:
    break
    }


is it possible to do this?

at all
