Map tokens in string to values. Supports custom token types.