Consider using char* as well as string.