replace patterns (vector) with replacements (vector) in string or string vector. uses gsub and perl=TRUE taken from https://stackoverflow.com/questions/26676045
xxx_replace_xxx(string, patterns, replacements)
string or vector of strings to replace in
pattern or vector of patterns to replace
replacements string, needs to have same length as replacment