code: private String normalizeState(String state) {
  
          String result = "";
          if (state.contains(STATE_SEPARATOR)) {
              result = state;
              while (result.startsWith("/")) {
                  result = result.substring(1);
              }
          }
          return result;
      }
docs: Normalizes the state string. Ensuring it starts with the right number of slashes resolving an issue with the vaadin state handling.<p>
  
  @param state the state string
  
  @return the normalized state string