Fix string comparison for URL history