removeStopWords method

String removeStopWords(
  1. String text
)

Implementation

String removeStopWords(String text) {
  text = text.replaceFirst('Signature', '');
  text = text.replaceFirst("Holder's", '');
  text = text.replaceFirst('ISLAMIC', '');
  text = text.replaceFirst('REPUBLIC', '');
  text = text.replaceFirst('OF', '');
  text = text.replaceFirst('National', '');
  text = text.replaceFirst('Identity', '');
  text = text.replaceFirst('Card', '');
  text = text.replaceFirst('Identity', '');

  return text;
}