Revert "Fix some bugs i created while removing mgStrToString"
Revert "Fix some bugs i created while removing mgStrToString"

This reverts commit e25b26148703ba8799cccd2e147bbfc7da432329.

Eloquence4/esp32-snippets,nkolban/esp32-snippets,FulminatingGhost/esp32-snippets,Eloquence4/esp32-snippets,FulminatingGhost/esp32-snippets,nkolban/esp32-snippets,Eloquence4/esp32-snippets,FulminatingGhost/esp32-snippets,nkolban/esp32-snippets,nkolban/esp32-snippets,FulminatingGhost/esp32-snippets,Eloquence4/esp32-snippets,Eloquence4/esp32-snippets,nkolban/esp32-snippets,FulminatingGhost/esp32-snippets