Revert "GC: Improve the string parsing for GC parameter setting"

This reverts commit e20acc1370cb5dcca2c5f5b60b271354c1f7e980.