would it make more sense to make this a std  string  since all of the startswith calls are going to convert it anyway it would also get rid of the strcmp calls the server modification lines could be changed to service erase sizeof x 