Fix faulty str_replace syntax

($search, $replace, $subject)
instead of
($subject, $search, $replace)