Refactored the string splitting function into a loop
added : as a split character
fix some more warnings
RAII BECAUSE IT IS GOOD