HashSet gives better performance than Set on small strings