representing strings as tuples