updated pattern for name extraction