Fix bug: need to do null check before toString in stringOf methods
Remove redundant methods stringOfList and stringOfSet