function that gives every char a number of his word