gives every char number of his word