Implemented a pooling mechansim for strings.