Refactor: Replace char array with std::string