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

This reverts commit 267c9ca5ff410df79bc022d71e4d3415af0e7675.