Php Replace Character From String To Object