Update url cookies and comphist
Rename and refactor string reversal functions