I already told you how to solve this on one of your previous questions but here it is to refresh your memory.
library(stringr)
text <- c("No", "no", "something", "Something")
str_detect(text, regex("no|something", ignore_case = TRUE))
#> [1] TRUE TRUE TRUE TRUE