public String chop(String string,int i){
  return (string.substring(0,string.length() - i));
}

public String chop ( String string , int i ) { return ( string . substring ( 0 , string . length ( ) - i ) ) ; }
chop i characters off the end of a string .
