new szString[] = "models/costume/model1_w.mdl"; //Change w to m and w to m szString[ strlen( szString ) - 5 ] = 'm'; //Delete underscore and everything after szString[ strlen( szString ) - 6 ] = EOS;