Using preg_replace_callback instead of deprecated /e modificator of preg_replace