As I see it MX should always regard trailing whitespaces in user input in text boxes as input mistakes and filter them out before further processing. This can help removing lots of subtle errors in names in large projects where these mistakes are bound to happen sooner or later.