Cleaned up error messages and SED string input exceptions.
(#523)