Well, the string can be actually anything but there are one or two "places" in need of replacement.
The string can be as in the original example (without anything behind) or it can be:
Restart mainsrv01 at midnight
where I want to replace it with:
Restart censored at midnight
mainsrv01 encountered error in apache at 21:30
censored encountered error in censored at 21:30
So, I'm trying to find a way to feed a function with for example three parameters, like:
$result = ("Kill process on server ","Kill process apache on server mainsrv01","censored");
and $result would be "Kill process censored on server censored".
Possible, you think?