Move the attending string generation in the model