Replaced use of preg_replace() with /e with preg_replace_callback()