Trim excess whitespace from tip and note dialogs.