Move CPU and memory stat collectors to Text instead of string