Revert "Fix getSubset() method in StringList class"

This reverts commit 46956cce94781ac7c434fea1cb9b3597e021ec41.