Preg replace should not look for a trailing comma