Since str_replace() matches \":Name\" two times in \":Name :Name_en\" I want to match the results for the whole word only. I wanted to switch to preg_repl
If your using PHP 5+ you can still use str_replace.
$str = ":Name :Name_en";
echo $str . chr(10);
// The final int limits the function to a single replace.
$str = str_replace(':Name', '"Test"', $str, 1);
echo $str;