converting all read only string operations to const char * in an attempt to clean code