Changed from using std string to c string