the actual string I'm referring to goes on two lines
In this case, you would need to search for the EXACT string including that linebreak. So
I just added something to the example:
$linebreak = chr(10).chr(13);
$string = "block save guard defend the save guard";
$string = str_replace("block save guard defend".$linebreak."more stuff to match","block !save guard defend".$linebreak."more stuff to match",$string);
echo $string;