code: public static String removeStartingChars(String s, char c) {
          int lastToRemove = -1;
          for (int i = 0; i < s.length(); i++) {
              if (s.charAt(i) == c) {
                  lastToRemove = i;
                  continue;
              }
  
              if (s.charAt(i) != c) {
                  break;
              }
          }
  
          if (lastToRemove < 0) return s;
          return s.substring(lastToRemove + 1);
      }
docs: Remove all consecutive chars c from the beginning of the string
  @param s String to process
  @param c Char to search for
  @return The string stripped from the starting chars.