protected static String trimAttributeName(String attName){
  return attName.substring(0,attName.length() - 1);
}

protected static String trimAttributeName ( String attName ) { return attName . substring ( 0 , attName . length ( ) - 1 ) ; }
removes the last character of the input string and returns the trimmed name
