Go to Admin > Email notifications > Templates > Agent reply templates and then click use this placeholder {{ticket.agent.firstname}} in the signature column. In this way, only the first name of the agent will be generated when you reply to a ticket.