Fix cookie parse from string