public int stepForward(int amount){
  currentPosition+=amount;
  currentPosition=Math.max(0,Math.min(currentPosition,content.length()));
  remaining=content.substring(currentPosition);
  return currentPosition;
}

public int stepForward ( int amount ) { currentPosition += amount ; currentPosition = Math . max ( 0 , Math . min ( currentPosition , content . length ( ) ) ) ; remaining = content . substring ( currentPosition ) ; return currentPosition ; }
steps forward the current position and updates the internal remaining string .
