Php Find And Replace String Leetcode