Somehow we got an agent name with a trailing space in it:


somebodys-computer .groupname

Notice the space between the machine name and the period.

When attempting to rename this agent,  a javascript alert pops up with "Select an account to rename"

The space is causing issues with other modules when applying profiles, etc.  Does anyone have any SQL hackery to *safely* rename this agent?

A ticket has already been put in, just looking for ideas in case this happens in the future.