Corrected str_replace