How do I replace a string when using hook_node_view()? I am trying to use hook_node_view() to replace, in the front page, &lt;div&gt;:placeholder1:&lt;/div&gt; with the content of $string.

function mymodule_node_view(&amp;$node, $view_mode, $langcode){
  $string = "I am here";
  $node-&gt;field_column_second['und'][0]['value']['#markup'] = array(
     '#markup' =&gt; str_replace(':placeholder1:', $string, $node-&gt;field_column_second['und'][0]['value'])
);


I also cleared Drupal cache, but I don't see any change.

What am I doing wrong?
According to the doc, the first parameter should be $node, rather than &amp;$node. 
The replacement code should look something like this:
$node-&gt;content['body'][0]['#markup'] = str_replace($old, $new, $subject); so you missed [0] in your code, when in doubt, do a dsm($node) and check the variable you want. 
Complete code:

function test_node_view($node, $view_mode, $langcode){
    if (drupal_is_front_page()) { // check if necessary
    $string = "new";
    $node-&gt;content['body'][0]['#markup'] = str_replace('old', $string, $node-&gt;content['body'][0]['#markup']);
    }
    //dsm($node);
}