Fix getSubset() method in StringList class