code: private static void shiftArray(char [] dest,int start, int e, char subChar){
          int w = e;
          int r = e;
          while (--r >= start) {
            char ch = dest[r];
            if (ch != subChar) {
              --w;
              if (w != r) {
                dest[w] = ch;
              }
            }
          }
     }
docs: /*
  Name    : shiftArray
  Function: Shifts characters to replace space sub characters