private boolean isAReferenceTag(String str){
  if (str == null) {
    return false;
  }
  return str.indexOf("<") == 0 && str.lastIndexOf(">") == (str.length() - 1);
}

private boolean isAReferenceTag ( String str ) { if ( str == null ) { return false ; } return str . indexOf ( "<" ) == 0 && str . lastIndexOf ( ">" ) == ( str . length ( ) - 1 ) ; }
check if the phone number is actually a reference to a data from the intent or external parameter .
