Now removing the trailing line break from error messages.