moved string helper functions into new class CStringHelper, using c++ style strings instrad of char *