Extract common information from a string.