Which machine learning/AI method is this problem related to?
For example I should delete words like and, the, etc. ...


In natural language processing, this first task is called stop word removal. You can identify them by looking at the words' frequency over the documents; uninformative words appear very often.