code: public static String removeIndex(String attributeName) {
  
          if (hasIndex(attributeName)) {
              attributeName = attributeName.substring(0, attributeName.lastIndexOf("["));
          }
          return attributeName;
      }
docs: Removes an attribute index suffix from the given attribute name.<p>
  
  @param attributeName the attribute name
  
  @return the attribute name