Comparing string comparison algorithms