stringr::str_replace_all()
allows you to specify a named vector for replacing several patterns at once.
stringr::str_replace_all("abc", c('a' = 'x', 'b' = 'y', 'c' = 'z'))
#> [1] "xyz"
Created on 2022-06-26 by the reprex package (v2.0.1)
Note: Next time please provide a proper REPRoducible EXample (reprex) illustrating your issue.