Can we do the parsing with char arrays and string switch instead of raw pointers?