Optimize memory usage of TextPool

previously those were passed to String.substring which expects the begin and end indices, so I think the names were wrong previously