private String excludeDestinationStatement(String text){
  int idx=-1;
  if ((idx=text.indexOf("Destination will be")) != -1) {
    text=text.substring(0,idx);
  }
  return text;
}

private String excludeDestinationStatement ( String text ) { int idx = - 1 ; if ( ( idx = text . indexOf ( "Destination will be" ) ) != - 1 ) { text = text . substring ( 0 , idx ) ; } return text ; }
parses the specified string to return the portion not containing the destination statement . this is needed so that the main text which when parsed , indicates the direction icon that will be used ; will be the only determiner of the associated directions icon . the destination text has other directions which will confuse the parsing which determines the icon . ( i . e . the destination will be on the right ) .
