Question: So I have an array and I know how to find the highest value but I can't figure out how to obtain the position of that value in the array. The method so far is as follows:

```
 public static void findHottest(int[] temp){
        int hottest = temp[0];
        for(int i = 1; i < temp.length; i++){
            if(temp[i] > hottest) {
                hottest = temp[i];
            }
        }

```

Answer: 
How about something like this:

```
var result = string.Join("\"",
               test.Split('\"')
                   .Select((s, i) => i%2 == 1 ? s : s.Replace(" ", string.Empty)));

```

It splits the string by double quotes, and selects every alternate split item for the replacement operation - then joins them up again.
you could do something like 

```
stringbuilder sb = new stringbuilder();
bool should_remove = true;

foreach (var c in my_string) {
    if (c == your_start_special_char)
        should_remove = false;
    else if (c == your_end_special_char)
        should_remove = true;   
    else if (c != ' ')
       sb.append(c);
}

```

mind the upper cases and syntax ... not on VS atm ...

Another option would be to splice it depending on your special areas and remove spaces from the regular ones ...