expose transaction_description and code in custom_statement_message
remove trailing spaces during parsing