Doing a "trim" on text boxes in the web admin UI

I’‘ve gotten errors where I’'ve cut and pasted some things and ended up with a space at the end of, say, a JID (in one case, when adding a user for access to a room). Doing a trim left and right on submission would be a good idea!

Could you make a list of the places where you’'ve found this to be an issue so that we can find an fix?

Thanks!

-Matt