added HashString for optimized performance of string comparisons