Trimspaces

This is for bug 823634 - Reason & message of the day strings should have leading and trailing whitespace removed.