Fix str_replace formatting