string to hashCodes, test added