tweak to message trim code, closes #95