[Main] remove ugly char constructs and use string instead