parse cookie strings