imo doing a simple switch case directly returning the appropriate message would be cleaner than generating all of them.