fixing regex for name parsing