fixed naming of custom str_replace function