Fix ?/recent str_replace issue